import { get, post } from '/@/utils/request';
import baseURL from '..';
/**
 * 获取设备列表
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const getDeviceListApi = (p: object) => get( baseURL + '/devices', p);
export const updateDeviceByIdApi = (p: object) => post( baseURL + '/device' + "/" + p.id , p);
export const addDeviceApi = (p: object) => post( baseURL + '/addDevice', p);
export const deleteDeviceApi = (p: object) => post( baseURL + '/deleteDevice' + "/" + p.id , p);
export const loginApi = (p: object) => post( baseURL + "/signIn", p);
export const codecApi = (p: object) => post( baseURL + "/codec"+"/"+p.type, p);